<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>


<form id="myForm" class="form-horizontal" action="privileges/add" method="post">
    <input type="hidden" id="id" name="id" class="a" value="${requestScope.role.id}">
    <c:forEach items="${requestScope.privileges}" var="a">

        <%--<c:choose>--%>
            <%--<c:when test="${empty a.parent}">--%>
                ${a.name}<input type="checkbox" name="sel" value="${a.id}"><br>
            <%--</c:when>--%>
            <%--<c:otherwise>--%>
                <%--${a.name}<input type="checkbox" name="sel" value="${a.id}">--%>
            <%--</c:otherwise>--%>
        <%--</c:choose>--%>
    </c:forEach>
</form>

